/*
-- By ---------------------------------------------------------------------------------------------
	[Dev]Fatal
-- Version Info -----------------------------------------------------------------------------------
	2.5 - Mu Lung Dojo Bulletin Board - by [Dev]Fatal
	-Added Dojo Info Text
*/

void npc(Player @player, NPC @npc) {
    int state = npc.getState();
    int type = npc.getSelected();
    npc.setVariable("type", type);
    if(state == 0){
	npc.addText("#e#b< Notice >#k\r\nIf there is anyone who has the courage to challenge the Mu Lung Dojo, come to the Mu Lung Dojo. - Mu Gong -\r\n #b#L0#Challenge the Mu Lung Dojo.#l\r\n #L1#Read the notice in more detail.#l");
	npc.sendSimple();
       }
       if(state == 1){
          if(type == 0){ // GoDojo
			 npc.addText("#b(Once I had placed my hands on the bulletin board, a mysterious energy began to envelop me.)#k\r\n Would you like to go to Mu Lung Dojo?");
             npc.sendYesNo();
          }
          else if(type == 1){ // Moreinfo
			npc.addText("#e#b< Notice : Take the challenge! >#k\r\nMy name is #bMu Gong#k, the owner of the #bMu Lung Dojo#k. Since long ago, I have been training in Mu Lung to the point where my skills have now reached the pinnacle. Starting today, I will take on any and all applicants for Mu Lung Dojo. The rights to the Mu Lung Dojo will be given only to the strongest person.\r\nIf there is anyone who wishes to learn from me, come take the challenge any time!  If there is anyone who wishes to challenge me, you're welcome to as well. I will make you fully aware of your own weakness.\r\n\r\n#bPS : You can challenge me on your own. But if you don't have that kind of courage, go ahead and call all your friends.#k");
             npc.sendOK();
			 npc.end();
          }
       }
       if(state == 2){
          if(npc.getSelected() == YES){
             npc.end();	
             npc.end();
             npc.getPlayer().changeMap(925020000);
          } else{
             npc.end();
          }
       }
	}